home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / StringContent$StickyPosition.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.1 KB  |  27 lines

  1. package javax.swing.text;
  2.  
  3. final class StringContent$StickyPosition implements Position {
  4.    // $FF: synthetic field
  5.    private final StringContent this$0;
  6.    StringContent.PosRec rec;
  7.  
  8.    StringContent$StickyPosition(StringContent var1, int var2) {
  9.       this.this$0 = var1;
  10.       var1.getClass();
  11.       this.rec = new StringContent.PosRec(var1, var2);
  12.       var1.marks.addElement(this.rec);
  13.    }
  14.  
  15.    protected void finalize() throws Throwable {
  16.       this.rec.unused = true;
  17.    }
  18.  
  19.    public int getOffset() {
  20.       return this.rec.offset;
  21.    }
  22.  
  23.    public String toString() {
  24.       return Integer.toString(this.getOffset());
  25.    }
  26. }
  27.